package com.mhy.entity.po;

import com.mhy.entity.dto.ProjectDTO;
import com.mhy.entity.enums.LayoutTypeEnum;
import com.mhy.entity.enums.ProjectStatusEnum;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ProjectPO {
    private Integer projectId;
    private String name;
    private String description;
    private Integer userId;
    private LayoutTypeEnum layoutStatus;
    private ProjectStatusEnum status;
    private Date producetime;
    private String scenario;
    private String xml;

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public LayoutTypeEnum getLayoutStatus() {
        return layoutStatus;
    }

    public void setLayoutStatus(LayoutTypeEnum layoutStatus) {
        this.layoutStatus = layoutStatus;
    }

    public ProjectStatusEnum getStatus() {
        return status;
    }

    public void setStatus(ProjectStatusEnum status) {
        this.status = status;
    }

    public Date getProducetime() {
        return producetime;
    }

    public void setProducetime(Date producetime) {
        this.producetime = producetime;
    }

    public String getScenario() {
        return scenario;
    }

    public void setScenario(String scenario) {
        this.scenario = scenario;
    }

    public String getXml() {
        return xml;
    }

    public void setXml(String xml) {
        this.xml = xml;
    }

    public ProjectPO(ProjectDTO projectDTO) {
        BeanUtils.copyProperties(projectDTO, this);
    }
}
